package com.activiti.po;



/**
 * ActIdMembershipId entity. @author MyEclipse Persistence Tools
 */

public class ActIdMembershipId  implements java.io.Serializable {


    // Fields    

     private ActIdUser actIdUser;
     private ActIdGroup actIdGroup;


    // Constructors

    /** default constructor */
    public ActIdMembershipId() {
    }

    
    /** full constructor */
    public ActIdMembershipId(ActIdUser actIdUser, ActIdGroup actIdGroup) {
        this.actIdUser = actIdUser;
        this.actIdGroup = actIdGroup;
    }

   
    // Property accessors

    public ActIdUser getActIdUser() {
        return this.actIdUser;
    }
    
    public void setActIdUser(ActIdUser actIdUser) {
        this.actIdUser = actIdUser;
    }

    public ActIdGroup getActIdGroup() {
        return this.actIdGroup;
    }
    
    public void setActIdGroup(ActIdGroup actIdGroup) {
        this.actIdGroup = actIdGroup;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof ActIdMembershipId) ) return false;
		 ActIdMembershipId castOther = ( ActIdMembershipId ) other; 
         
		 return ( (this.getActIdUser()==castOther.getActIdUser()) || ( this.getActIdUser()!=null && castOther.getActIdUser()!=null && this.getActIdUser().equals(castOther.getActIdUser()) ) )
 && ( (this.getActIdGroup()==castOther.getActIdGroup()) || ( this.getActIdGroup()!=null && castOther.getActIdGroup()!=null && this.getActIdGroup().equals(castOther.getActIdGroup()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getActIdUser() == null ? 0 : this.getActIdUser().hashCode() );
         result = 37 * result + ( getActIdGroup() == null ? 0 : this.getActIdGroup().hashCode() );
         return result;
   }   





}